$OpenBSD: patch-encfs_test_cpp,v 1.1.1.1 2014/01/17 10:10:58 stsp Exp $
--- encfs/test.cpp.orig	Thu Jan 16 14:11:17 2014
+++ encfs/test.cpp	Thu Jan 16 14:11:44 2014
@@ -65,7 +65,7 @@ int checkErrorPropogation( const shared_ptr<Cipher> &c
 
     for(int i=0; i<size; ++i)
     {
-	unsigned char tmp = rand();
+	unsigned char tmp = arc4random();
 	orig.data[i] = tmp;
 	data.data[i] = tmp;
     }
@@ -81,7 +81,7 @@ int checkErrorPropogation( const shared_ptr<Cipher> &c
 	unsigned char previousValue = data.data[byteToChange];
 	do
 	{
-	    data.data[byteToChange] = rand();
+	    data.data[byteToChange] = arc4random();
 	} while(data.data[byteToChange] == previousValue);
     }
 
